package com.qf.main.pharmacy.common.qo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
@author chengqiang
@Create 2024-03-03-23:29
@Description:
*/

/**
 * 出库库表
 */
@ApiModel(description="出库库表")
@Data
@TableName(value = "delivery")
public class DeliveryQo {
    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.INPUT)
    @ApiModelProperty(value="主键")
    private Integer id;

    /**
     * 入库编号
     */
    @TableField(value = "delivery_no")
    @ApiModelProperty(value="入库编号")
    private Long deliveryNo;

    /**
     * 入库人员
     */
    @TableField(value = "username")
    @ApiModelProperty(value="入库人员")
    private String username;

    /**
     * 数目
     */
    @TableField(value = "quantity")
    @ApiModelProperty(value="数目")
    private Integer quantity;

    /**
     * 单价
     */
    @TableField(value = "price")
    @ApiModelProperty(value="单价")
    private String price;

    /**
     * 总价
     */
    @TableField(value = "total_price")
    @ApiModelProperty(value="总价")
    private String totalPrice;

    /**
     * 备注
     */
    @TableField(value = "delivery_desc")
    @ApiModelProperty(value="备注")
    private String deliveryDesc;

    /**
     * 创建时间
     */
    @TableField(value = "create_date")
    @ApiModelProperty(value="创建时间")
    private Date createDate;

    /**
     * 出库药品id
     */
    @TableField(value = "pharmacy_id")
    @ApiModelProperty(value="出库药品id")
    private Integer pharmacyId;

    public static final String COL_ID = "id";

    public static final String COL_DELIVERY_NO = "delivery_no";

    public static final String COL_USERNAME = "username";

    public static final String COL_QUANTITY = "quantity";

    public static final String COL_PRICE = "price";

    public static final String COL_TOTAL_PRICE = "total_price";

    public static final String COL_DELIVERY_DESC = "delivery_desc";

    public static final String COL_CREATE_DATE = "create_date";

    public static final String COL_PHARMACY_ID = "pharmacy_id";
}
